package com.zx.cashiersystem.utils;

/**李哲   折扣计算的类
 * Created by Lizhe on 2017/1/8.
 */

public class DiscountPay {

    //根据传入的折扣和金额,得出最后金额
    public static String getZhekou(String money,String zhekou){
        return ArithmeticUtils.mul(money,String.valueOf(Double.valueOf(zhekou)/10),2);
       /* Double getMoney = Double.valueOf(money) * Double.valueOf(zhekou)%10;
        return String.valueOf(new DecimalFormat("###,##0.00").format(getMoney));*/
    }

    //查询优惠码查询优惠
    public static String getFavorable(String favorableNumber){



            return  "全场只要五块九";
    }

    /**
     * 根据优惠码和总金额求结账金额
     * @param favorableNumber        优惠码
     * @param moeny              总金额
     * @return
     */
    public static String getFavorableMoney(String favorableNumber,String moeny){

        return "999";
    }



}
